import axios from "@/utils/http";
export enum API {
    UploadFile = "/api/file/UploadFile",
    GetFile = "/api/file/GetFile",
    GetFileList = "/api/file/GetFileList",
    DellFile = "/api/file/DellFile"
    
}

export const uploadfile = <T>(parmas: any, config?: any): Promise<T> => {
    return axios.postFile(API.UploadFile, parmas, config) as Promise<T>;
};

export const GetFileList = <T>(parmas: any,): Promise<T> => {
    return axios.get(API.GetFileList, parmas) as Promise<T>;
};
export const DellFile = <T>(parmas: any,): Promise<T> => {
    return axios.post(API.DellFile, parmas) as Promise<T>;
};